package com.yonyou.cloud.member.domainmodel.services;

import com.yonyou.cloud.member.domainmodel.context.ServiceContext;
import com.yonyou.cloud.member.domainmodel.dto.MemberPointHistoryDto;
import com.yonyou.cloud.member.domainmodel.dto.MemberPointQueryConditionDto;
import com.yonyou.cloud.member.domainmodel.dto.PageQueryResult;
import com.yonyou.cloud.member.domainmodel.entities.member.Member;
import com.yonyou.cloud.member.domainmodel.vo.MemberId;

import java.util.List;

public interface MemberService {
    Member find(MemberId id);

    Member find(String phone);

    List<Member> list(String level);

    int count();

    boolean add(Member member);

    boolean delete(MemberId id);

    PageQueryResult<MemberPointHistoryDto> queryMemberPointHistory(MemberPointQueryConditionDto conditionDto, ServiceContext serviceContext);
}